package _3ChapterThree._13ReplaceTypeCodeWithClass.step2;

public class Person {
    public static int O = BloodGroup.O.getCode();
    public static int A = BloodGroup.A.getCode();
    public static int B = BloodGroup.B.getCode();
    public static int AB = BloodGroup.AB.getCode();
    private int bloodGroup;

    public Person(int bloodGroup){
        this.bloodGroup = bloodGroup;
    }

    public int getBloodGroup() {
        return bloodGroup;
    }

    public void setBloodGroup(int bloodGroup) {
        this.bloodGroup = bloodGroup;
    }
}
